package day3.p1;

import java.util.Random;

public class Advisor {
	private String message[];

	public Advisor() {
		message = new String[5];
		message[0] = "Good Morning";
		message[1] = "Good Afternoon";
		message[2] = "Good evening";
		message[3] = "Good night";
		message[4] = "Good Day";
	}

	public String getAdvice() {
		Random rand = new Random();
		return "Advice: " + message[rand.nextInt(5)];
	}
}
